// 最简代码，也就是这些字段必须有
export default {
  path: "/book",
  redirect: "/book/book",
  rank: 200,
  meta: {
    title: "图书管理",
    icon: "twemoji:green-book",
    roles: ["admin"],
    transition: {
      // 页面进场动画
      enterTransition: "animate__fadeInRight",
      // 页面离场动画
      leaveTransition: "animate__fadeOutDown"
    }
  },
  children: [
    {
      path: "/book/book",
      name: "Book",
      component: () => import("@/views/book/book.vue"),
      meta: {
        title: "图书",
        icon: "twemoji:open-book",
        
      }
    },
    {
      path: "/book/author",
      name: "Author",
      component: () => import("@/views/book/author.vue"),
      meta: {
        title: "作者",
        icon: "twemoji:person-in-tuxedo-light-skin-tone"
      }
    },
    {
      path: "/book/publish",
      name: "Publish",
      component: () => import("@/views/book/publish.vue"),
      meta: {
        title: "出版社",
        icon: "fxemoji:officebuilding"
      }
    },
    {
      path: "/book/recognition",
      name: "Recognition",
      component: () => import("@/views/book/recognition.vue"),
      meta: {
        title: "人头识别",
        icon: "twemoji:person-in-tuxedo-light-skin-tone"
      }
    },
  ]
} as RouteConfigsTable;
